<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../../../attr.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<link rel="stylesheet" href="${ctx}/css/sapar.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/css/common.css" />
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/js/sapar.js"></script>
<script type="text/javascript" src="${ctx}/js/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx}/assets/layer/layer.js"></script>
<script type="text/javascript" src="${ctx}/assets/laydate/laydate.js"></script>

<title>员工编辑管理</title>
<style type="text/css">
.kv-item label{
	width: 150px;
}
.iselect-wrapper{
	float: left;
	margin-right: 5px;
	width: 245px!important;
}

.iselect-wrapper,.iselect{
	width:245px!important;
}
.xuanzhong{
color: red;

}
.login-times{
	margin:10px;
	color: #333;
	font-family: '微软雅黑';
	font-size: 13px;
}
.login-times li{
	padding: 10px 0;
	border-bottom: 1px solid #ddd;
}
#flex{display:flex;justify-content:space-around;}
.kv-item input[type=datetime]{
     width: 250px;
    height: 28px;
    border-width: 1px;
    border-style: solid;
    border-left-color: #c5c5c5;
    border-top-color: #c5c5c5;
    border-right-color: #e0e0e0;
    border-bottom-color: #e0e0e0;
    outline: none;
    /* background: url(../img/skin_/inputbg.png); */
    padding: 0 10px;
}
</style>
</head>

<body>
	<div id="saper-container">
		<div id="saper-hd"></div>
		<div id="saper-bd">
			<!-- <div class="subfiled clearfix">
				<h2>员工信息编辑</h2>
			</div> -->
			<div class="subfiled-content">
				<form class="saper-form" id="dataForm">
					<div class="tab-container" data-trigger="click">
						<div class="tab">
							<a href="javascript:;" class="current">基本信息</a> <a
								href="javascript:;">权限信息</a>
						</div>
						<div class="tab-content">
							<div class="tab-content-item" id="flex">
							    <div id="aaa2">
							         <div class="kv-item clearfix">
										<label><span class="impInfo"></span>员工姓名：</label>
										<div class="kv-item-content">
											<input name="employeeName" id="employeeName"
												class="txt_required" placeholder="员工姓名" type="text"
												value="${emp.employeeName}"
												readonly="readonly">
										</div>
								   </div>
							       	<div class="kv-item clearfix">
									<label>员工英文简称(自动生成)：</label>
									<div class="kv-item-content">
										<input name="employeeCode" id="employeeCode"
											class="txt_required" placeholder="员工英文简称" type="text"
											value="${emp.employeeCode}" readonly="readonly">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>员工登录名：</label>
									<div class="kv-item-content">
										<input name="employeeLoginname" id="employeeLoginname"
											class="txt_required" placeholder="员工登录名" type="text"
											value="${emp.employeeLoginname}"
											readonly="readonly">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>登陆密码：</label>
									<div class="kv-item-content">
										<input name="employeePassword" id="employeePassword"
											placeholder="登陆密码" type="password" value="${emp.employeePassword}">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>出生日期 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											name="employeeBirthday" id="employeeBirthday"
											value="<fmt:formatDate value='${emp.employeeBirthday}' type='date' pattern='yyyy-MM-dd'/>"
											placeholder="出生日期" readonly="readonly">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>政治面貌 ：</label>
									<div class="kv-item-content">
										<input name="employeePoliticalOutlook" id="employeePoliticalOutlook" placeholder="政治面貌"
											type="text" value="${emp.employeePoliticalOutlook }" readonly="readonly">
									</div>
								</div>
											<div class="kv-item clearfix">
									<label>来院工作时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											value="<fmt:formatDate value='${emp.employeeArrivehospitalDate}' type='date' pattern='yyyy-MM-dd'/>"
											id="employeeArrivehospitalDate" name="employeeArrivehospitalDate"
											placeholder="来院工作时间" readonly="readonly">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>来我科工作时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											value="<fmt:formatDate value='${emp.employeeArrivedeptDate}' type='date' pattern='yyyy-MM-dd'/>"
											name="employeeArrivedeptDate" id="employeeArrivedeptDate"
											placeholder="来我科工作时间 " readonly="readonly">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>毕业时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											value="<fmt:formatDate value='${emp.employeeGraduationTime}' type='date' pattern='yyyy-MM-dd'/>"
											name="employeeGraduationTime" id="employeeGraduationTime"
											placeholder="毕业时间" readonly="readonly">
									</div>
								</div>
								<div class="kv-item clearfix">
									<label>晋升时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											value="<fmt:formatDate value='${emp.employeePromotionTime}' type='date' pattern='yyyy-MM-dd'/>"
											id="st" name="employeePromotionTime" id="employeePromotionTime"
											placeholder="晋升时间" readonly="readonly">
									</div>
								</div>
									<div class="kv-item clearfix">
									<label>聘用时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											value="<fmt:formatDate value='${emp.employeeEmployTime}' type='date' pattern='yyyy-MM-dd'/>"
											id="st" name="employeeEmployTime" id="employeeEmployTime"
											placeholder="聘用时间 " readonly="readonly">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>毕业学校 ：</label>
									<div class="kv-item-content">
										<input name="employeeGraduateSchool" id="employeeGraduateSchool" placeholder="毕业学校"
											type="text" readonly="readonly" value="${emp.employeeGraduateSchool }">
									</div>
								</div>
									<div class="kv-item clearfix">
									<label>用工形式 ：</label>
									<div class="kv-item-content">
										<input name="employeeEmploymentForm" id="employeeEmploymentForm" placeholder="用工形式"
										type="text" readonly="readonly" value="${emp.employeeEmploymentForm }">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>英语等级：</label>
									<div class="kv-item-content">
										<input name="employeeCetGrade" id="employeeCetGrade" placeholder="英语等级"
										type="text" readonly="readonly" value="${emp.employeeCetGrade }">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>岗位状态 ：</label>
									<div class="kv-item-content">
										<c:if test="${emp.employeePostStatus == 1 }">
										    <input name="employeePostStatus" id="employeePostStatus" placeholder="岗位状态"
										    type="text" readonly="readonly" value="在职">
										</c:if>
										<c:if test="${emp.employeePostStatus == 2 }">
										    <input name="employeePostStatus" id="employeePostStatus" placeholder="岗位状态"
										    type="text" readonly="readonly" value="离职">
										</c:if>
									</div>
								</div>
								<div class="kv-item clearfix">
									<label>职称 ：</label>
									<div class="kv-item-content">
									    <input name="employeeWorkers" id="employeeWorkers" placeholder="岗位状态"
									    type="text" readonly="readonly" value="${emp.employeeWorkers }">
									</div>
								</div>
								<div class="kv-item clearfix">
									<label>护士执照编号 ：</label>
									<div class="kv-item-content">
										<input name="employeeLicenseNumber" id="employeeLicenseNumber" placeholder="护士执照编号"
											readonly="readonly" type="text" value="${emp.employeeLicenseNumber }">
									</div>
								</div>
							</div>
							<div id="aaa1">
							    <div class="kv-item clearfix">
									<label>员工编号 ：</label>
									<div class="kv-item-content">
									    <input name="employeeNo" id="employeeNo" placeholder="员工编号"
										type="text" value="${emp.employeeNo }">
									</div>
								</div>	
								
								<div class="kv-item clearfix">
									<label>学历 ：</label>
									<div class="kv-item-content">
									    <input name="employeeEducation" id="employeeEducation" placeholder="学历"
										type="text" value="${emp.employeeEducation }">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>员工电话 ：</label>
									<div class="kv-item-content">
										<input name="employeeTel" id="employeeTel" placeholder="员工电话"
											type="text" value="${emp.employeeTel}" readonly="readonly">
									</div>
								</div>
									
								<div class="kv-item clearfix">
									<label>员工年龄 ：</label>
									<div class="kv-item-content">
										<input name="employeeAge" id="employeeAge" placeholder="员工年龄"
											type="text" value="${emp.employeeAge}" readonly="readonly">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>员工身份证号：</label>
									<div class="kv-item-content">
										<input name="employeeIdcard" id="employeeIdcard"
											placeholder="请真实填写" type="text" value="${emp.employeeIdcard}"
											readonly="readonly">
									</div>
								</div>

								<%-- <div class="kv-item  dataSel  clearfix">
									<label>员工所属科室：</label>
									<div class="kv-item-content">
										<select class="empty" id="departmentId" name="departmentId">
											<c:forEach items="${departmentList}" var="dep">
												<option value="${dep.departmentId}"
													<c:if test="${dep.departmentId==emp.departmentId}">selected="selected"</c:if>>${dep.departmentName}</option>
											</c:forEach>
										</select>
									</div>
								</div> --%>

								<%-- <div class="kv-item  dataSel  clearfix">
									<label>员工类型：</label>
									<div class="kv-item-content">
										<input name="employeeType" id="employeeType"
											placeholder="员工类型" type="text" value="${emp.employeeType}"
											readonly="readonly">
									</div>
								</div> --%>

								<div class="kv-item  dataSel  clearfix">
									<label>员工性别：</label>
									<div class="kv-item-content">
										<c:if test="${emp.employeeSex == 1 }">
										    <input name="employeeSex" id="employeeSex"
											placeholder="员工类型" type="text" value="男"
											readonly="readonly">
										</c:if>
										<c:if test="${emp.employeeSex == 2 }">
										    <input name="employeeSex" id="employeeSex"
											placeholder="员工类型" type="text" value="女"
											readonly="readonly">
										</c:if>
									</div>
								</div>
								<div class="kv-item clearfix">
									<label>应急电话：</label>
									<div class="kv-item-content">
										<input name="employeePossibletel" id="employeePossibletel"
											placeholder="应急电话" type="text"
											value="${emp.employeePossibletel}"
											readonly="readonly">
									</div>
								</div>

								<div class="kv-item  dataSel  clearfix">
									<label>员工是否可以授权：</label>
									<div class="kv-item-content">
											<c:if test="${emp.employeeAuth == 1 }">
											    <input name="employeeAuth" id="employeeAuth"
											placeholder="员工是否可以授权" type="text"
											value="是"
											readonly="readonly">
											</c:if>
											<c:if test="${emp.employeeAuth == 2 }">
											    <input name="employeeAuth" id="employeeAuth"
											placeholder="员工是否可以授权" type="text"
											value="否"
											readonly="readonly">
											</c:if>
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>家庭住址：</label>
									<div class="kv-item-content">
										<input name="employeeAddress" id="employeeAddress"
											placeholder="家庭住址" type="text" value="${emp.employeeAddress}"
											readonly="readonly">
									</div>
								</div>

								<div class="kv-item  dataSel  clearfix">
									<label>是否借调其他科室：</label>
									<div class="kv-item-content">
									    <c:if test="${emp.employeeWorkstate == 1 }">
									        <input name="employeeWorkstate" id="employeeWorkstate"
											placeholder="是否借调其他科室" type="text" value="正常"
											readonly="readonly">
									    </c:if>
									    <c:if test="${emp.employeeWorkstate == 0 }">
									        <input name="employeeWorkstate" id="employeeWorkstate"
											placeholder="是否借调其他科室" type="text" value="借调"
											readonly="readonly">
									    </c:if>
									</div>
								</div>

								<%-- <div class="kv-item  dataSel  clearfix">
									<label>借调科室：</label>
									<div class="kv-item-content">
											 <input name="departmentId" id="departmentId"
											placeholder="借调科室" type="text" value="${emp.departmentId }"
											readonly="readonly">
									</div>
								</div> --%>

								<div class="kv-item  dataSel  clearfix">
									<label>员工状态：</label>
									<div class="kv-item-content">
									    <c:if test="${emp.employeeState == 1 }">
									        <input name="employeeState" id="employeeState"
											placeholder="员工状态" type="text" value="正常"
											readonly="readonly">
									    </c:if>
									    <c:if test="${emp.employeeState == 0 }">
									        <input name="employeeState" id="employeeState"
											placeholder="员工状态" type="text" value="冻结"
											readonly="readonly">
									    </c:if>
									    <c:if test="${emp.employeeState == -1 }">
									        <input name="employeeState" id="employeeState"
											placeholder="员工状态" type="text" value="离职"
											readonly="readonly">
									    </c:if>
									</div>
								</div>

								<%-- <div class="kv-item clearfix">
									<label>员工图片 ：</label>
									<div class="kv-item-content">
										<input type="hidden" name="employeePic" id="employeePic"
											value="${emp.employeePic}" /> <input type="file"
											name="upPicFile" id="upPicFile" value=""> <input
											type="button" id="uploadPic" value="上传" />
									</div>
								</div> --%>

								<div class="kv-item clearfix">
									<label>鞋子尺码 ：</label>
									<div class="kv-item-content">
										<input name="employeeFootSize" id="employeeFootSize"
											placeholder="鞋子尺码" type="text" value="${emp.employeeFootSize }"
											readonly="readonly" />
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>上衣尺码 ：</label>
									<div class="kv-item-content">
										<input name="employeeGarmentSize" id="employeeGarmentSize"
											placeholder="上衣尺码" type="text" value="${emp.employeeGarmentSize }"
											readonly="readonly" />
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>下装尺码 ：</label>
									<div class="kv-item-content">
										<input name="employeeTrousersSize" id="employeeTrousersSize"
											placeholder="上衣尺码" type="text" value="${emp.employeeTrousersSize }"
											readonly="readonly" />
									</div>
								</div>

									<div class="kv-item clearfix">
										<label>毛衣尺码 ：</label>
										<div class="kv-item-content">
											<input name="employeeSweaterSize" id="employeeSweaterSize"
												placeholder="毛衣尺码 " type="text" value="${emp.employeeSweaterSize }"
												readonly="readonly" />
										</div>
									</div>
								</div>
							</div>

							<div class="tab-content-item">
								<ul class="login-times">
									<c:if test="${treeModule != null}">
										<c:forEach items="${treeModule}" var="treeModule">
											<li><strong>
													${treeModule.moduleName}:&nbsp;&nbsp;&nbsp;&nbsp; </strong> <c:forEach
													items="${treeMap[treeModule.moduleId]}" var="treeModule1">
													<label> <input value="${treeModule1.moduleId}"
														${treeModule1.checked} name="key" type="checkbox" /> <span
														class="checkbox mn"></span>${treeModule1.moduleName}
													</label>
												</c:forEach></li>
										</c:forEach>
									</c:if>
								</ul>
							</div>
						</div>
					</div>
					<%-- <div class="buttons">
						<a href="javascript:;" class="sapar-btn sapar-btn-recom">确定</a> 
						<input type="hidden" name="employeeId" value="${emp.employeeId}" /> 
						<input type="hidden" name="employeeNo" id="employeeNo" value="${emp.employeeNo}" />
					</div> --%>
				</form>
			</div>

		</div>
	</div>
<script src="${ctx}/js/ajaxfileupload.js"></script>
</body>
</html>